/*
 * Copyright (c) 2018.
 * This file was written by Fancyears·Milos·Malvis @connor. Any question/bug you can't post to 1243093366@qq.com.
 * ALL RIGHTS RESERVED.
 */
package org.fancyears.proxy;

/**
 * @author: Fancyears·Milos·Malvis
 * @CreateDate: 2019年1月10日 下午5:30:55
 * @Description:
 */

public class TargetImpl implements Target {

	@Override
	public void execute() {
		String methodName = Thread.currentThread().getStackTrace()[1].getMethodName();
		System.out.println(this.getClass().getCanonicalName() + "#" + methodName);
	}

	@Override
	public void execute2() {
		String methodName = Thread.currentThread().getStackTrace()[0].getMethodName();
		System.out.println(this.getClass().getCanonicalName() + "#" + methodName);
	}

}
